package com.job.client.model.company.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_authentication")
public class Authentication {
    @TableId(value = "authentication_id",type = IdType.ASSIGN_UUID)
    private String authenticationId;

    @TableField("company_id")
    private String companyId;

    @TableField("user_id")
    private String userId;

    @TableField("employee_status")
    private Integer EmployeeStatus;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    public Authentication(String companyId, String userId) {
        this.companyId = companyId;
        this.userId = userId;
    }

    public Authentication(String companyId, String userId, Integer employeeStatus) {
        this.companyId = companyId;
        this.userId = userId;
        EmployeeStatus = employeeStatus;
    }
}
